function initIOHUDatabase(database){

    var id = 0;

  //Initialize the database
    database.transaction(function(tx) {
    	tx.executeSql('CREATE TABLE IF NOT EXISTS clients(client_id integer primary key autoincrement, client_onlineId, client_nickname, client_password, client_status)');
    	tx.executeSql('SELECT * FROM clients', [], function(tx, result){

    		if(result.rows.length == 0 )
            {
    			tx.executeSql('INSERT INTO clients(client_onlineId, client_nickname, client_password, client_status) VALUES (0, "Alice", "b6c44750620e42e2ae9cc4b0aa9fa14727e66549", "0" )');
                tx.executeSql('INSERT INTO clients(client_onlineId, client_nickname, client_password, client_status) VALUES (0, "Bob", "d86b14cf5da39c01edf8aaa4e45b225758832709", "0" )');    
	        }
            else
            {
                tx.executeSql("UPDATE clients SET client_onlineId = '0',  client_status = '0'",[], function (tx,rs) { });
            }
    	});

        
		tx.executeSql('CREATE TABLE IF NOT EXISTS conversations(conversation_id integer primary key autoincrement, conversation_userA, conversation_userB)');
    	tx.executeSql('SELECT * FROM conversations', [], function(tx, result){

    		if(result.rows.length == 0 )
            {
    			tx.executeSql('INSERT INTO conversations(conversation_userA, conversation_userB) VALUES ("Alice", "Bob")',[], function (tx,rs) { id = rs.insertId;});
            }
            tx.executeSql('CREATE TABLE IF NOT EXISTS messages(message_id integer primary key autoincrement, message_conversationId, message_sender, message_message, message_timestamp)');
            tx.executeSql('SELECT * FROM messages', [], function(tx, result){

                if(result.rows.length == 0 )
                {
                    tx.executeSql('INSERT INTO messages(message_conversationId, message_sender, message_message, message_timestamp) VALUES ("'+ id + '", "Alice", "Bonjour, comment allez vous ?", 1351089226)');
                    tx.executeSql('INSERT INTO messages(message_conversationId, message_sender, message_message, message_timestamp) VALUES ("'+ id + '", "Bob", "Je vais bien, et vous ?", 1351089236)');
                }
            });
    	});
    });
}
